package tugas.akhir.jason;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class dr00_jenisbangunan extends Activity{
	/** Called when the activity is first created. */
    
	Button dr00_rumah;
	Button dr00_fasilitasumum;
	Button dr00_kantor;
	
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.dr00_jenisbangunan);
        
        
        dr00_rumah = (Button) findViewById(R.id.dr00_rumah);
        dr00_fasilitasumum = (Button) findViewById(R.id.dr00_fasilitasumum);
        dr00_kantor = (Button) findViewById(R.id.dr00_kantor);
        
        
        dr00_rumah.setOnClickListener(new View.OnClickListener() {
    		public void onClick(View view)
    		{
    		variabelstatis.alamatglobal = "";
			variabelstatis.dr01_namafasilitasumum = "-";
			variabelstatis.dr01_alamatfasilitasumum = "-";
			variabelstatis.dr02_namakantor="-";
			variabelstatis.dr02_alamatkantor="-";
			variabelstatis.dr02_namapemilik="-";
			variabelstatis.dr02_nomorkontakpemilik="-";
			variabelstatis.dr02_jumlahlantairusak ="-";
			variabelstatis.dr2_toogle = "0";
			variabelstatis.dr2_buttonpemilik ="0";
			variabelstatis.dr2_buttonpemilik = "0";
			variabelstatis.dr2_buttonpenyewa = "0";
			variabelstatis.dr2_namapenghuni = "-";
			variabelstatis.dr2_nomorkontak = "-"; 
			variabelstatis.dr2_jumlahpenghuni = "0";
			variabelstatis.dr3_asuransibangunan = "0";
			variabelstatis.dr3_asuransibarangpersonal = "0";
			variabelstatis.dr3_asuransijiwa = "0";
			variabelstatis.dr3_tidakada = "0";
			variabelstatis.dr3_tidakdiketahui = "0";
			variabelstatis.dr4_gempabumi="0";
			variabelstatis.dr4_tsunami="0";
			variabelstatis.dr4_gunungmeletus="0";
			variabelstatis.dr4_banjir="0";
			variabelstatis.dr4_kebakaran="0";
			variabelstatis.dr4_angintopan="0";
			variabelstatis.dr4_tanahlongsor="0";
			variabelstatis.dr4_lainlain ="0";
			variabelstatis.dr5_kategorikerusakan="0";
    		
    		  { startActivity(new Intent(dr00_jenisbangunan.this, dr1_alamat.class)); }
    		}
    	});
        

        dr00_fasilitasumum.setOnClickListener(new View.OnClickListener() {
    		public void onClick(View view)
    		{
        		variabelstatis.alamatglobal = "-";
    			variabelstatis.dr01_namafasilitasumum = "";
    			variabelstatis.dr01_alamatfasilitasumum = "";
    			variabelstatis.dr02_namakantor="-";
    			variabelstatis.dr02_alamatkantor="-";
    			variabelstatis.dr02_namapemilik="-";
    			variabelstatis.dr02_nomorkontakpemilik="-";
    			variabelstatis.dr02_jumlahlantairusak ="-";
    			variabelstatis.dr2_toogle = "-";
    			variabelstatis.dr2_buttonpemilik ="-";
    			variabelstatis.dr2_buttonpemilik = "-";
    			variabelstatis.dr2_buttonpenyewa = "-";
    			variabelstatis.dr2_namapenghuni = "-";
    			variabelstatis.dr2_nomorkontak = "-"; 
    			variabelstatis.dr2_jumlahpenghuni = "-";
    			variabelstatis.dr3_asuransibangunan = "-";
    			variabelstatis.dr3_asuransibarangpersonal = "-";
    			variabelstatis.dr3_asuransijiwa = "-";
    			variabelstatis.dr3_tidakada = "-";
    			variabelstatis.dr3_tidakdiketahui = "-";
    			variabelstatis.dr4_gempabumi="0";
    			variabelstatis.dr4_tsunami="0";
    			variabelstatis.dr4_gunungmeletus="0";
    			variabelstatis.dr4_banjir="0";
    			variabelstatis.dr4_kebakaran="0";
    			variabelstatis.dr4_angintopan="0";
    			variabelstatis.dr4_tanahlongsor="0";
    			variabelstatis.dr4_lainlain ="0";
    			variabelstatis.dr5_kategorikerusakan="0";
        		
    		  { startActivity(new Intent(dr00_jenisbangunan.this, dr01_fasilitasumum.class)); }
    		}
    	});
        
        dr00_kantor.setOnClickListener(new View.OnClickListener() {
    		public void onClick(View view)
    		{
        		variabelstatis.alamatglobal = "-";
    			variabelstatis.dr01_namafasilitasumum = "-";
    			variabelstatis.dr01_alamatfasilitasumum = "-";
    			variabelstatis.dr02_namakantor="";
    			variabelstatis.dr02_alamatkantor="";
    			variabelstatis.dr02_namapemilik="";
    			variabelstatis.dr02_nomorkontakpemilik="";
    			variabelstatis.dr02_jumlahlantairusak ="0";
    			variabelstatis.dr2_toogle = "-";
    			variabelstatis.dr2_buttonpemilik ="-";
    			variabelstatis.dr2_buttonpemilik = "-";
    			variabelstatis.dr2_buttonpenyewa = "-";
    			variabelstatis.dr2_namapenghuni = "-";
    			variabelstatis.dr2_nomorkontak = "-"; 
    			variabelstatis.dr2_jumlahpenghuni = "-";
    			variabelstatis.dr3_asuransibangunan = "-";
    			variabelstatis.dr3_asuransibarangpersonal = "-";
    			variabelstatis.dr3_asuransijiwa = "-";
    			variabelstatis.dr3_tidakada = "-";
    			variabelstatis.dr3_tidakdiketahui = "-";
    			variabelstatis.dr4_gempabumi="0";
    			variabelstatis.dr4_tsunami="0";
    			variabelstatis.dr4_gunungmeletus="0";
    			variabelstatis.dr4_banjir="0";
    			variabelstatis.dr4_kebakaran="0";
    			variabelstatis.dr4_angintopan="0";
    			variabelstatis.dr4_tanahlongsor="0";
    			variabelstatis.dr4_lainlain ="0";
    			variabelstatis.dr5_kategorikerusakan="0";
        		
    		  { startActivity(new Intent(dr00_jenisbangunan.this, dr02_kantor.class)); }
    		}
    	});
        
    }
}